package org.linlinjava.litemall.db.vo.logistics;

import org.linlinjava.litemall.db.vo.wechat.SeparateWechatData;

/**
 * @author wj
 * @date 2021/11/3 13:59
 */
public class LogisticsStoreCloudData {

    /**
     * 云仓或门店信息
     */

    private Integer id;

    private String name;

    private String address;

    private String storePhone;

    //第三方物流信息
    private String logisticsName;

    private String logisticsPhone;

    private Integer isThirdPart;

    public Integer getIsThirdPart() {
        return isThirdPart;
    }

    public void setIsThirdPart(Integer isThirdPart) {
        this.isThirdPart = isThirdPart;
    }

    public String getStorePhone() {
        return storePhone;
    }

    public void setStorePhone(String storePhone) {
        this.storePhone = storePhone;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public String getLogisticsPhone() {
        return logisticsPhone;
    }

    public void setLogisticsPhone(String logisticsPhone) {
        this.logisticsPhone = logisticsPhone;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public LogisticsStoreCloudData() {
    }

    public LogisticsStoreCloudData(SeparateWechatData wechatData) {
        this.id=wechatData.getStoreId();
        this.name=wechatData.getStoreName();
        this.address=wechatData.getAddressDetail();
        this.logisticsName=wechatData.getLogisticsName();
        this.logisticsPhone= wechatData.getLogisticsPhone();
        this.storePhone= wechatData.getStorePhone();
        this.isThirdPart=(wechatData.getDeliveryMode()!=null&&wechatData.getDeliveryMode()==3)?1:0;
    }

}
